import routerObj from './config/routesImport'
import { visualDataChild, userChildren, readBookChildren } from './config/routerChildren'

export const routerList = [
  {
    path: '/visualData',
    name: 'visualData',
    component: routerObj['visualData'],
    meta: {
      title: '可视化',
      icon: 'laptop',
      auth: true
    },
    children: [
      ...visualDataChild
    ]
  },
  {
    path: '/users',
    name: 'users',
    component: routerObj['UserManage'],
    meta: {
      title: '用户管理',
      icon: 'user',
      auth: true
    },
    children: [
      ...userChildren
    ]
  },
  {
    path: '/readBook',
    name: 'readBook',
    component: routerObj['ReadBook'],
    meta: {
      title: '阅读记录',
      icon: 'read',
      auth: true
    },
    children: [
      ...readBookChildren
    ]
  },
  {
    path: '/setting',
    name: 'setting',
    component: routerObj['Setting'],
    meta: {
      title: '系统设置',
      icon: 'setting',
      auth: true
    }
  }
]
